﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using System.Data;
namespace ProjetLabo.Test
{
    /// <summary>
    /// Logique d'interaction pour Test.xaml
    /// </summary>
    public partial class Test : Window
    {
        public Test()
        {
            InitializeComponent();
            DataTable datatable = new DataTable()
            {
                TableName="Nom de la table"
            };
            DataColumn columnPrenom = new DataColumn(){
                ColumnName = "Prenom",
                DataType = typeof(string)
            };
            DataColumn columnNom = new DataColumn(){
                ColumnName = "Nom",
                DataType = typeof(string)
            };
            datatable.Columns.Add(columnPrenom);
            datatable.Columns.Add(columnNom);

            this.Latable.Table = datatable;

        }
    }
}
